<template>
  <div>
    目标组件 --------- {{id}}-----{{gender}}
        <mt-button type="default" icon="back" @click="black">返回</mt-button>

  </div>
</template>

<script>
export default {
  data(){
    return{
      id:this.$route.params.id,
      gender:this.$route.params.gender,
    }
  },
  methods:{
    black(){
      console.log(this)

      this.$router.go(-1)
    }
  }
}
</script>